<template>
  <div class="dashboard-container">
    首页
    <button @click="btnClick">点我获取数据</button>
  </div>
</template>

<script>
import { testAPI } from '@/api'

export default {
  methods: {
    async btnClick () {
      let res = await testAPI()
      console.log(res)
    }
  }
}
</script>

<style></style>
